<template>
    <div>
        <a-table :pagination="false"  :scroll="{ y: scrollY}" :columns="columns" :data-source="data" bordered></a-table>
    </div>
</template>
<script>
export default {
  name: 'stationWIPTable',
  props: [],
  data() {
    return {
      columns: [
        {
          title: '工序',
          dataIndex: 'process'
        }, {
          title: '应收',
          dataIndex: 'receivable'
        }, {
          title: '已收',
          dataIndex: 'received'
        }, {
          title: '异常',
          dataIndex: 'abnormal'
        }, {
          title: '维修',
          dataIndex: 'repair'
        }, {
          title: '剩余',
          dataIndex: 'surplus'
        }
      ],
      data: [
        { process: '工序1' }, { process: '工序1' }, { process: '工序1' }, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}
      ],
      scrollY: 200
    }
  },
  methods: {

  },
  mounted() {
    this.scrollY = document.body.clientHeight - 450
    console.log(this.scrollY)
    console.log(document.body.clientHeight)
  }
}
</script>
<style scoped>

</style>
